<template>
  <!-- begin -搜索热区 -->
  <view class="search-link" @click="toSearch">
    <view class="inner">
      <icon type="search" size="16" color="#bbb"></icon>
      <text>搜索</text>
    </view>
  </view>
  <!-- end -搜索热区 -->
</template>

<script>
export default {
  methods: {
    // 跳转搜索页面
    toSearch () {
      wx.navigateTo({
        url: '/pages/search/main'
      })
    }
  }
}
</script>

<style scoped lang="less">
.search-link {
  padding: 20rpx 16rpx;
  background-color: #eb4450;

  .inner {
    height: 60rpx;
    background-color: #fff;
    border-radius: 8rpx;
    display: flex;
    align-items: center;
    justify-content: center;

    text {
      color: #bbb;
      margin-left: 16rpx;
    }

    icon {
      margin-top: 6rpx;
    }
  }
}
</style>
